/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.handwritingtime.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotNull;
import java.util.List;
import com.google.common.collect.Lists;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 手写签名时间管理Entity
 * @author 张鑫
 * @version 2022-06-01
 */
@Data
public class HandwritingTime extends DataEntity<HandwritingTime> {
	
	private static final long serialVersionUID = 1L;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="开始时间不能为空")
	@ExcelField(title="开始时间", align=2, sort=1)
	private Date startTime;		// 开始时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="结束时间不能为空")
	@ExcelField(title="结束时间", align=2, sort=2)
	private Date endTime;		// 结束时间

	private List<HandwritingAttachedTime> handwritingAttachedTimeList = Lists.newArrayList();		// 子表列表
	
	public HandwritingTime() {
		super();
	}

	public HandwritingTime(String id){
		super(id);
	}
}